package com.stu.chart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @author dsj
 * @TableName user_publish
 */
@TableName(value ="user_publish")
@Data
public class UserPublish implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "content")
    private String content;

    @TableField(value = "title")
    private String title;


    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "publish_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private String publisher;
    @TableField(exist = false)
    private String picture;
    @TableField(exist = false)
    private Integer status;
    @TableField(exist = false)
    private Integer score;
}